import request from '@/api/request'
const token = localStorage.getItem('token')
export const logSubmit = ({ currentPage, pageSize, queryString }) => {
  return request({
    url: `/log/loginLog/${currentPage}/${pageSize}`,
    method: 'GET',
    params: {
      queryString
    },
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}
export const OperationDatalogSubmit = ({ currentPage, pageSize, queryString }) => {
  return request({
    url: `/operation/operationLog/${currentPage}/${pageSize}`,
    method: 'GET',
    params: {
      queryString
    },
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}

export const logExcel = () => {
  return request({
    url: '/log/export',
    method: 'GET',
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}
